import service from "@/utils/request"
interface OrderSummaryType {
  beginEndTime: string	//开始交期结束时间	string	body	true
  beginStartTime: string	//开始交期开始时间	string	body	true
  deliveryEndDate: string	//交期结束时间	string	body	true
  deliveryStartDate: string	//交期开始时间	string	body	true
  line: string	//生产线	string	body	true
  lotNO: string	//指令	string	body	true
  pageNum: number	//integer	body	true
  pageSize: number	//integer	body	true
  style: string	//工厂货号	string	body	true
}
interface TableListType {
  lists: never[]
  list: [],
  total: number,
  pageNum: number,
  pageSize: number,
  totalDays?: number,
  totalOrders?: number,
}
interface SelectListType {
  brands: [],
  samples: [],
  seasons: [],
}
export default {
  // 获取表格列表
  getTableList(params: OrderSummaryType) {
    return service.post<any, TableListType>('/pcOrder/pcAggScheduleList', params)
  },
  // 获取下拉列表
  getSelectList() {
    return service.get<any, string[]>('/pcOrder/pcAggScheduleCondition')
  },
  // 生产线
  getSelectList2() {
    return service.get<any, any>('/pcOrder/pcLineList')
  }
}